package com.kyivmohyla.kma2.dao.mapper;

import com.kyivmohyla.kma2.model.State;
import org.springframework.jdbc.core.RowMapper;

import java.sql.ResultSet;
import java.sql.SQLException;

public class StateRowMapper implements RowMapper<State> {

    @Override
    public State mapRow(ResultSet rs, int line) throws SQLException {
        StateResultSetExtractor extractor = new StateResultSetExtractor();
        return extractor.extractData(rs);
    }

}
